package cn.gene.timeyan.article.webapi.mapper;


import cn.gene.timeyan.pojo.article.model.Reply;
import cn.gene.timeyan.pojo.article.vo.ReplyVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 鏂囩珷璇勮?鐨勫洖澶 Mapper 接口
 * </p>
 *
 * @author LWG
 * @since 2022-07-25
 */
@Repository
public interface ReplyMapper extends BaseMapper<Reply> {

    int addNewReply(Reply reply);

    List<ReplyVO> listByCommentIdTime(Long commentId);

    int display(Long id);

    int hide(Long id);

    int updateLikeByReplyId(@Param("id") Long id,@Param("like") int like);
}
